/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pruebas;

import java.util.Scanner;

/**
 *
 * @author ddpc
 */
public class arrays {

    int[] a, b, c;
    Scanner teclado;

    public void insertar() {
        teclado = new Scanner(System.in);
        a = new int[4];
        b = new int[4];
        c = new int[4];
        for (int i = 0; i < 4; i++) {
            System.out.println("insertar numero:");
            a[i] = teclado.nextInt();
            System.out.println("insertar numero:");
            b[i] = teclado.nextInt();
            c[i] = a[i] + b[i];
        }
        for (int i = 0; i < 4; i++) {
            System.out.println("resultado de " + (i + 1) + " = " + c[i]);
        }
    }

    public static void main(String[] args) {
        arrays x = new arrays();
        x.insertar();
    }
}
